package com.zhiyou100.loans.dao.impl;

import com.zhiyou100.loans.dao.WithdrawDao;
import com.zhiyou100.loans.model.WithDraw;
import com.zhiyou100.loans.util.JDBCUtil;

public class WithdrawDaoImpl implements WithdrawDao {
	JDBCUtil util = new JDBCUtil();
	@Override
	public int add(WithDraw wdw) {
		String sql="insert into withdraw(money,userid,withdrawtime,withdrawtype) values(?,?,?,?)";
		Object[] objs={wdw.getMoney(),wdw.getUserid(),wdw.getWithdrawtime(),wdw.getWithdrawtype()};
		return util.update(sql, objs);
	}


}
